from django.db import models
from django.contrib.auth.models import User, Group, Permission
from django.utils import timezone
from datetime import date, datetime, timedelta
from django.core.validators import MinValueValidator, MaxValueValidator
from django.urls import reverse
from django.utils.translation import gettext_lazy as _

class BaseModel(models.Model):
    """基础模型，包含创建时间和更新时间，其他模型继承此模型"""
    created_at = models.DateTimeField(auto_now_add=True, verbose_name="创建时间")
    updated_at = models.DateTimeField(auto_now=True, verbose_name="更新时间")

    class Meta:
        abstract = True